<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/admin/include/init_admin.jsp" %>
<%@ page import="com.welfare.admin.system.*" %>
<%
	String job_type = StringUtil.nvl(request.getParameter("job_type"),"C");
	String docu_id 	= StringUtil.nvl(request.getParameter("docu_id"));
	
	if (!"".equals(docu_id)) {
		job_type = "U";
	}
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><%= SYSTEM_NAME %></title>
	<%@ include file="/admin/include/cssnjs.jsp"  %>

	<script type="text/javascript">
	
	
	$(document).ready(function() {
		
	
	});

	
	function fnSave() {
		if (cfCheckRequired(document.saveForm.file_path, '첨부파일을 추가해주세요')) 
		{
			return true;
			/* $.ajax({
			    url: '/common/fileSave.do',
			    data: $('#saveForm').serialize(),	//$('#file_path').attr('files'),
			    cache: false,
			    contentType: 'multipart/form-data',
			    processData: false,
			    type: 'POST',
			    success: function(data){
			        alert(data.file_id);
			    }
			}); */
		}
		
		return false;
	}


	</script>
</head>
<body>
<div id="wrap">
	<div id="popup">
		<div class="menu_title">
			<h1>파일 선택</h1>
			<div class="r mt2"></div>
		</div>
		<div class="clear line_01"></div>

		<form id="saveForm" name="saveForm" action="/common/fileSave.do" method="post" enctype="multipart/form-data" onsubmit="return fnSave()">
		<input type="hidden" name="job_type" id="job_type" value="C"/>
		<table cellpadding="0" cellspacing="0" class="table_01 mt30">
			<colgroup>
				<col width="100px"/>
				<col/>
			</colgroup>
			<tbody>
				<tr>
					<th><p><label for="docu_name">파일첨부</label></p></th>
					<td>
						<input type="file" name="file_path" id="file_path" class="wmax"/>
					</td>
				</tr>
			</tbody>
		</table>
		
		<div class="mt20 mb10 c">
			<input type="image" class="button" src="../images/btn_register.gif" />
			<a href="#nohref" onclick="self.close()"><img src="../images/btn_cancel.gif" /></a>
		</div>
	
		</form>
		
	</div>
</div>

</body>
</html>
